var recordTableInit=function(){
	var oTableInit = {};
	oTableInit.init=function(){

        $('#recordTable').bootstrapTable({
            url: ctx +'/equipLifeCycle/check/checkRecord/getMonthRecord/get.mvc',         //请求后台的URL（*）
            method: 'get',                      //请求方式（*）
//            toolbar: '#toolbar',                //工具按钮用哪个容器
            striped: true,                      //是否显示行间隔色
            cache: false,                       //是否使用缓存，默认为true，所以一般情况下需要设置一下这个属性（*）
            pagination: true,                   //是否显示分页（*）
            paginationLoop:false,
            sortable: true,                     //是否启用排序
            sortOrder: "asc",                   //排序方式
            queryParams: oTableInit.queryParams,//传递参数（*）
            sidePagination: "server",           //分页方式：client客户端分页，server服务端分页（*）
            pageNumber:1,                       //初始化加载第一页，默认第一页
            pageSize: 10,                       //每页的记录行数（*）
            pageList: [10, 25, 50, 100],        //可供选择的每页的行数（*）
            search: false,                       //是否显示表格搜索，此搜索是客户端搜索，不会进服务端，所以，个人感觉意义不大
            strictSearch: true,
            showColumns: false,                  //是否显示所有的列
            showRefresh: false,                  //是否显示刷新按钮
            minimumCountColumns: 2,             //最少允许的列数
            clickToSelect: true,                //是否启用点击选中行
            height: 500,                        //行高，如果没有设置height属性，表格自动根据记录条数觉得表格高度
            uniqueId: "pkId",                     //每一行的唯一标识，一般为主键列
            showToggle:false,                    //是否显示详细视图和列表视图的切换按钮
            cardView: false,                    //是否显示详细视图
            detailView: false,                   //是否显示父子表
            singleSelect:false,                    //禁止多选
            checkboxHeader:true,                 //列头取消多选
            columns: [
                {
                    radio:true,
                    align : 'center',
                    valign : 'middle'
                },
                {
                    title: '序号',
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                        var options = $('#recordTable').bootstrapTable('getOptions');
                        return options.pageSize * (options.pageNumber - 1) + index + 1;
                    }
                },{
                    field: 'eqCode',
                    title: '设备编号',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'
                }, {
                    field: 'eqName',
                    title: '设备名称',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'
                }, {
                    field: 'checkModelCode',
                    title: '点检项目编号',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'
                }, {
                    field: 'value1',
                    title: '1',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='1'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='1'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value2',
                    title: '2',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='2'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='1'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'value3',
                    title: '3',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='3'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='3'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value4',
                    title: '4',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='4'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='4'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value5',
                    title: '5',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='5'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='5'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value6',
                    title: '6',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='6'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='6'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'value7',
                    title: '7',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='7'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='7'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value8',
                    title: '8',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='8'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='8'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value9',
                    title: '9',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='9'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='9'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value10',
                    title: '10',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='10'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='10'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'value11',
                    title: '11',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='11'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='11'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value12',
                    title: '12',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='12'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='12'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value13',
                    title: '13',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='13'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='13'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value14',
                    title: '14',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='14'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='14'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'value15',
                    title: '15',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='15'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='15'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value16',
                    title: '16',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='16'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='16'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value17',
                    title: '17',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='17'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='17'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value18',
                    title: '18',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='18'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='18'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'value19',
                    title: '19',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='19'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='19'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value20',
                    title: '20',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='20'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='20'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value21',
                    title: '21',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='21'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='21'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value22',
                    title: '22',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='22'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='22'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'value23',
                    title: '23',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='23'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='23'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value24',
                    title: '24',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='24'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='24'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value25',
                    title: '25',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='25'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='25'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value26',
                    title: '26',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='26'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='26'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'value27',
                    title: '27',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='27'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='27'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value28',
                    title: '28',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='28'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='28'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value29',
                    title: '29',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='29'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='29'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                }, {
                    field: 'value30',
                    title: '30',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='30'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='30'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'value31',
                    title: '31',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '-1'){
                    		return "<div class='table-box' " +
                    				" data-day='31'"+
                    				" data-eqcode='" +row.eqCode+"'"+
                    				" data-checkmodelcode='" +row.checkModelCode+"'"+
                    				" data-eqname='" +row.eqName+"'"+
                    				" data-modelcode='" +row.modelCode+"'"+
                    				" data-factoryname='" +row.factoryName+"'"+
                    				" data-locationname='" +row.areaName+"'"+
                    				"><div class='is-false'></div></div>";
                    	}else if(value == "1"){
                    		return "<div class='table-box' " +
            				" data-day='31'"+
            				" data-eqcode='" +row.eqCode+"'"+
            				" data-checkmodelcode='" +row.checkModelCode+"'"+
            				" data-eqname='" +row.eqName+"'"+
            				" data-modelcode='" +row.modelCode+"'"+
            				" data-factoryname='" +row.factoryName+"'"+
            				" data-locationname='" +row.areaName+"'"+
            				"><div class='is-true'></div></div>";
                    	}
                    }

                },{
                    field: 'pkId',
                    title: 'pkId',
                    visible:false
                }]

        });
    
	};
	
	//得到查询的参数
    oTableInit.queryParams = function (params) {
        return {   // 这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的
            size: params.limit,   // 页面大小
            num: (params.offset/params.limit) + 1,  // 页码
            sort: params.sort,
            order: params.order,
            factoryId: $(".factoryId").val(),
            areaId: $(".areaId").val(),
            equipName: $(".eqName").val(),
            date: $(".date").val()    
        }
    };
    return oTableInit;
} 


var checkTableInit =function(){

	var oTableInit = {};
	oTableInit.init=function(eqCode,checkItemCode,year,month,day){

        $('#itemTable').bootstrapTable({
            url: ctx +'/equipLifeCycle/check/checkRecord/getMonthRecordDetail/get.mvc',         //请求后台的URL（*）
            method: 'get',                      //请求方式（*）
//            toolbar: '#toolbar',                //工具按钮用哪个容器
            striped: true,                      //是否显示行间隔色
            cache: true,                       //是否使用缓存，默认为true，所以一般情况下需要设置一下这个属性（*）
            pagination: true,                   //是否显示分页（*）
            paginationLoop:false,
            sortable: true,                     //是否启用排序
            sortOrder: "asc",                   //排序方式
            queryParams: function(params){
            	
            	return {   // 这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的
                    size: params.limit,   // 页面大小
                    num: (params.offset/params.limit) + 1,  // 页码
                    sort: params.sort,
                    order: params.order,
                    eqCode:eqCode,
                    checkItemCode:checkItemCode,
                    year:year,
                    month:month,
                    day:day
                }
            },//传递参数（*）
            sidePagination: "server",           //分页方式：client客户端分页，server服务端分页（*）
            pageNumber:1,                       //初始化加载第一页，默认第一页
            pageSize: 10,                       //每页的记录行数（*）
            pageList: [10, 25, 50, 100],        //可供选择的每页的行数（*）
            search: false,                       //是否显示表格搜索，此搜索是客户端搜索，不会进服务端，所以，个人感觉意义不大
            strictSearch: true,
            showColumns: false,                  //是否显示所有的列
            showRefresh: false,                  //是否显示刷新按钮
            minimumCountColumns: 2,             //最少允许的列数
            clickToSelect: true,                //是否启用点击选中行
//            height: 500,                        //行高，如果没有设置height属性，表格自动根据记录条数觉得表格高度
            uniqueId: "pkId",                     //每一行的唯一标识，一般为主键列
            showToggle:false,                    //是否显示详细视图和列表视图的切换按钮
            cardView: false,                    //是否显示详细视图
            detailView: false,                   //是否显示父子表
            singleSelect:false,                    //禁止多选
            checkboxHeader:true,                 //列头取消多选
            columns: [
                
                {
                    title: '序号',
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                        var options = $('#itemTable').bootstrapTable('getOptions');
                        return options.pageSize * (options.pageNumber - 1) + index + 1;
                    }
                }, {
                    field: 'checkItemCode',
                    title: '点检项目编码',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'
                }, {
                    field: 'checkItemName',
                    title: '点检项目名称',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'
                },{
                    field: 'checkMethod',
                    title: '点检方法',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'
                }, {
                    field: 'checkStandard',
                    title: '点检标准',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'

                }, {
                    field: 'maxValue',
                    title: '上限值',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'

                }, {
                    field: 'standardValue',
                    title: '标准值',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'

                },
                {
                    field: 'minValue',
                    title: '下限值',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'

                },
                {
                    field: 'checkResult',
                    title: '点检结果',
                    sortable:false,
                    align : 'center',
                    valign : 'middle',
                    formatter : function (value, row, index){
                    	if(value == '0'){
                    		return "合格";
                    	}else{
                    		return "不合格";
                    	}
	                }

                },
                {
                    field: 'checkUser',
                    title: '点检人',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'

                },
                {
                    field: 'checkDate',
                    title: '点检时间',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'

                },
                {
                    field: 'remark',
                    title: '备注',
                    sortable:false,
                    align : 'center',
                    valign : 'middle'

                }, {
                    field: 'pkId',
                    title: 'pkId',
                    visible:false
                }]

        });
    
	};
	
    return oTableInit;

}();

var recordInfoInit = function(){
	return {
		_init : function(){
			
			recordInfoInit._monthDate(); 
			recordInfoInit._initAreaSelect(); 
			recordInfoInit._initFactorySelect(); 
			/*recordInfoInit._topEquipClick();*/
			recordInfoInit._query();
			recordInfoInit._reset();
			recordInfoInit._detail();
			recordInfoInit._export();
			
			//top10
			recordInfoInit._queryTop10();
			recordInfoInit._queryTop10Click();
		},
		
		_monthDate : function(){
			$('.form_datetimeMonth').val(new Date().format('yyyy-MM'));
			$('.form_datetimeMonth').datetimepicker({
				format : 'yyyy-mm',
				language : 'zh-CN',
				pickerPosition: "bottom-left",
				endDate : new Date().format('yyyy-MM'),
				forceParse : true,
				startView :3,
				minView:3,
				todayBtn:true
			});
			
		},
		_initAreaSelect : function () {
            $.ajax({
                url: ctx +'/factory/area/listAllArea/get.mvc',
                type:"post",
                aysnc: false,
                dataType:'json',
                data : '',
                success : function(response){
                    if(response.result === true) {
                        var _data = response.data;
                        $(".searchDto select[name=location]").append("<option value='' >请选择</option>");
                        for (var i = 0; i < _data.length; i++) {
                            $(".searchDto select[name=location]").append("<option value='"+_data[i].pkId+"' >" + _data[i].areaName + "</option>");
                        }
                    } else {
                        DialogUtil.error(response.message);
                    }
                },
                error: function(){
                    alert("系统错误");
                }
            });
        },
		_initFactorySelect : function () {
            $.ajax({
                url: ctx +'/factory/factoryArea/listAllFactory/get.mvc',
                type:"post",
                aysnc: false,
                dataType:'json',
                data : '',
                success : function(data){
                    $(".searchDto select[name=factory]").append("<option value='' >请选择</option>");
                    for (var i = 0; i < data.length; i++) {
                        $(".searchDto select[name=factory]").append("<option value='"+data[i].pkId+"' >" + data[i].factoryName + "</option>");
                    }
                },
                error: function(){
                    alert("系统错误");
                }
            });
        },
		
		_query : function(){
			$(".searchDto .query").off("click").on("click",function(){
				//月度巡检表
				$('#recordTable').bootstrapTable('refresh');
				//top10
				recordInfoInit._queryTop10();
				
			})
		},
		_reset : function(){
			$(".condition-query .reset").off("click").on("click",function(){
				$(".equipName").val("");
				$(".queryEquipment").empty();
				$(".queryEuqipModel").empty();
			})
		},
		
		//top10点检事件
		_queryTop10Click : function(){
			$(".eqTop").on("click",".topEquip",function(){
				$(this).addClass('active').siblings().removeClass('active');
				var equipCode =$(this).data("code");
				//获取设备详细信息
				$("#myModal .equipCode").val($(this).data("code"));
				$("#myModal .modelCode").val($(this).data("modelcode"));
				$("#myModal .areaName").val($(this).data("locationname"));
				$("#myModal .equipName").val($(this).data("equipname"));
				$("#myModal .factoryName").val($(this).data("factoryname"));
				
				//获取年份和月份
				var date =$(".date").val();
				var year =date.substring(0,4);
				var month=date.substring(5,7).replace(/\b(0+)/gi,"");
				
				//点检
				$("#myModal").modal();
				$("#myModal").off("shown.bs.modal").on("shown.bs.modal",function(){
					$('#itemTable').bootstrapTable('destroy');
					checkTableInit.init(equipCode,"",year,month,"");
					$('#itemTable').off("load-success.bs.table").on("load-success.bs.table",function(){
						$("#myModal .fixed-table-pagination").hide();
					});
				})
				
				
			})
		},
		_queryTop10 : function(){
			$.ajax({
				url : ctx + '/equipLifeCycle/check/checkRecord/getTop10/get.mvc',
				type : "post",
				dataType : 'json',
				data : {date:$(".form_datetimeMonth").val()},
				success : function(response) {
					if (response.result == true) {
						//循环月度点检表
						$(".eqTop").empty();
						for(var i =0 ;i<response.data.length;i++){
							$(".eqTop").append("<li class='topEquip' "
									+" title='"+response.data[i].eqCode+"'"
									+" data-code='"+response.data[i].eqCode+"'"
									+" data-equipname='"+response.data[i].equipName+"'"
									+" data-modelcode='"+response.data[i].modelCode+"'"
									+" data-factoryname='"+response.data[i].factoryName+"'"
									+" data-locationname='"+response.data[i].locationName+"'"
									+" >"+response.data[i].eqCode+"</li>");
						}
						
					}else{
						DialogUtil.warning(response.message);
					}
				},
				error : function(XMLHttpRequest, textStatus, errorThrown) {
					alert("系统错误");
				}
			})
		},
		_detail : function(){
			$("#recordTable").on("click",".table-box",function(){
				debugger;

				var equipCode =$(this).data("eqcode");
				//获取设备详细信息
				$("#myModal .equipCode").val($(this).data("eqcode"));
				$("#myModal .modelCode").val($(this).data("modelcode"));
				$("#myModal .areaName").val($(this).data("locationname"));
				$("#myModal .equipName").val($(this).data("eqname"));
				$("#myModal .factoryName").val($(this).data("factoryname"));
				
				//获取年份和月份
				var date =$(".date").val();
				var year =date.substring(0,4);
				var month=date.substring(5,7).replace(/\b(0+)/gi,"");
				var day =$(this).data("day");
				
				//详细
				var checkmodelcode =$(this).data("checkmodelcode");
				//点检
				$("#myModal").modal();
				$("#myModal").off("shown.bs.modal").on("shown.bs.modal",function(){
					$('#itemTable').bootstrapTable('destroy');
					checkTableInit.init(equipCode,checkmodelcode,year,month,day);
					$('#itemTable').off("load-success.bs.table").on("load-success.bs.table",function(){
						$("#myModal .fixed-table-pagination").hide();
					});
				})
				
				
			
				
				
			})
			
		},
		_export : function(){
			$("#exportTaskRecord").on("click",function(){
				
				window.location.href = ctx +"/equipLifeCycle/check/checkRecord/exportRecord/get.mvc?" +
					"factoryId="+$(".factoryId").val()
					+"&areaId="+$(".areaId").val()
					+"&equipName="+$(".eqName").val()
					+"&date="+$(".date").val();
			})
		}
		
		
		
	}
}();
jQuery(document).ready(function() {
	 //初始化页面
    recordInfoInit._init();
	var oTable = new recordTableInit();
    oTable.init();
   
});
